waypoint *wpt;
};
+static int compare_lon(const void *a, const void *b);
+
static
int
compare_lat(const void *a, const void *b)
if ( difference ) {
return 1;
}
- return 0;
+ if ( wa->wpt->longitude - wa->wpt->longitude == 0 ) {
+ return 0;
+ }
+ return compare_lon(a,b);
}
static
if ( difference ) {
return 1;
}
- return 0;
+ if ( wa->wpt->latitude - wa->wpt->latitude == 0 ) {
+ return 0;
+ }
+ return compare_lat(a,b);
}
static void